package sync;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;


public class ThreadA extends Thread {

	@Override
	public void run() {

		System.out.println("threada");
		Future<String> future=Cache.processor.getFuture("hello threadA");
		try {
			String response =future.get();
			System.out.println("response:"+response);
		} catch (InterruptedException e) {
			e.printStackTrace();
		} catch (ExecutionException e) {
			e.printStackTrace();
		}
		
		
	}
}
